package com.sugar.subscribe.course.module.business.controller.admin.config.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 参数配置新增/修改 Request VO")
@Data
public class BizConfigSaveReqVO {

    @Schema(description = "参数主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15941")
    private Long id;

    @Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "参数名称不能为空")
    private String name;

    @Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "参数键名不能为空")
    private String configKey;

    @Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "参数键值不能为空")
    private Object value;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

}